Maps the location of the cursor to a part of the screen or a region of a window when your application receives a mouse-down event.
pascal short FindWindow (Point thePoint,
WindowPtr *theWindow);
The FindWindow function returns an integer that specifies where the cursor was when the user pressed the mouse button. You typically call FindWindow whenever you receive a mouse-down event. The FindWindow function helps you dispatch the event by reporting whether the cursor was in the menu bar or in a window when the mouse button was pressed and, if it was in a window, which window and which region of the window. If the mouse-down event occurred in a window, FindWindow places a pointer to the window in the value referenced through the parameter theWindow .
The FindWindow function returns an integer that specifies one of nine regions. For a list of the corresponding enumerators and the actions your application should take, see "FindWindow Result Codes" .
pascal WindowPtr FrontWindow (void);